package hashcode

import (
	"crypto/md5"
	"fmt"
)

func Md5(s string) string {
	hash:=md5.New()
	res := hash.Sum([]byte(s))
	md5str := fmt.Sprintf("%x", res) //将[]byte转成16进制
	return md5str
}
